﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _XYOTA
{
    class WorkFlag
    {
        /* Hex转化为string变量 */
        public string ToHexString(byte[] bytes, int tt)
        {
            string hexString = string.Empty;
            if (bytes != null)
            {
                StringBuilder strB = new StringBuilder();
                for (int a = 0; a < tt; a++)
                {
                    strB.Append(bytes[a].ToString("X2"));
                    strB.Append(" ");
                }
                hexString = strB.ToString();
            }
            return hexString;
        }

        /* str转化为byte，"1234"->{0x12,0x34}*/
        public byte[] strToHexByte(string hexString)
        {
            //hexString = hexString.Replace(" ", "");
            if ((hexString.Length % 2) != 0)
            {
                hexString = hexString.Insert(hexString.Length - 1, 0.ToString());
            }
            byte[] returnBytes = new byte[hexString.Length / 2];
            for (int i = 0; i < returnBytes.Length; i++)
            {
                returnBytes[i] = Convert.ToByte(hexString.Substring(i * 2, 2), 16);
            }
            return returnBytes;
        }


        /// <summary>
        /// 皮肤种类
        /// </summary>
        public string[] Skintype =
         {
            "MacOS",
            "office2007",
            "MSN",
            "XPSilver",
            "XPOrange",
            "XPGreen",
            "XPBlue",
            "WaveColor2",
            "WaveColor1",
            "Wave",
            "WarmColor3",
            "WarmColor2",
            "WarmColor1",
            "Warm",
            "Vista2_color7",
            "Vista2_color6",
            "Vista2_color5",
            "Vista2_color4",
            "Vista2_color3",
            "Vista2_color2",
            "Vista2_color1",
            "vista1_green",
            "vista1",
            "SteelBlue",
            "SteelBlack",
            "SportsOrange",
            "SportsGreen",
            "SportsCyan",
            "SportsBlue",
            "SportsBlack",
            "SilverColor2",
            "SilverColor1",
            "Silver",
            "RealOne",
            "PageColor2",
            "PageColor1",
            "Page",
            "OneOrange",
            "OneGreen",
            "OneCyan",
            "OneBlue",
            "mp10purple",
            "mp10pink",
            "mp10mulberry",
            "mp10maroon",
            "mp10green",
            "mp10",
            "MidsummerColor3",
            "MidsummerColor2",
            "MidsummerColor1",
            "Midsummer",
            "Longhorn",
            "GlassOrange",
            "GlassGreen",
            "GlassBrown",
            "EmeraldColor3",
            "EmeraldColor2",
            "EmeraldColor1",
            "Emerald",
            "EighteenColor2",
            "EighteenColor1",
            "Eighteen",
            "DiamondRed",
            "DiamondPurple",
            "DiamondOlive",
            "DiamondGreen",
            "DiamondBlue",
            "DeepOrange",
            "DeepGreen",
            "DeepCyan",
            "CalmnessColor2",
            "CalmnessColor1",
            "Calmness"
            };














    }


}
